package main

import (
	"database/sql"
	"log"

	_ "gitee.com/general252/dm"
)

func main() {
	conn, err := sql.Open("dm", "dm://SYSDBA:123456@192.168.6.59:5236")
	if err != nil {
		log.Println(err)
		return
	} else {
		defer conn.Close()
	}

	if err = conn.Ping(); err != nil {
		log.Printf("ping fail. %v", err)
		return
	} else {
		log.Println("ping success")
	}
}
